SAS Viya: The R Perspective by Yue Qi & Kevin D. Smith & Xiangxiang Meng

SAS Viya: The R Perspective by Yue Qi & Kevin D. Smith & Xiangxiang Meng

Author:Yue Qi & Kevin D. Smith & Xiangxiang Meng [Qi, Yue]
Language: eng
Format: epub
Publisher: SAS Institute
Published: 2018-07-19T23:00:00+00:00


This code generates summary statistics only for columns that you have specified: DemAge, Purchase_12mon, and Purchase_6mon. In the next example, we compute the summary statistics for the columns for recent purchase amounts and save the result in a local object.

> varlist <- c('Purchase_3mon', 'Purchase_6mon', 'Purchase_9mon',

+ 'Purchase_12mon')

> result <- cas.simple.summary(organics, inputs = varlist)

The result is an R list object that contains a data.frame in the “Summary” key. A CAS action might return one or more tables referenced by the names of the list object. In this example, only one summary table has been returned by the simple.summary action.

> names(result)



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.